﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace TestCalc
{
    public partial class ShowPage : Form
    {
        public ShowPage()
        {
            InitializeComponent();
            DataGridView data = new DataGridView();
            data.BackgroundColor = new System.Drawing.Color();
            //data.ColumnAdded("id");
            
            
        }

        private void ShowPage_Load(object sender, EventArgs e)
        {
            Form1 form1 = (Form1)this.Owner;
            int num1 = int.Parse(form1.num1.Text.ToString());
            int num2 = int.Parse(form1.num2.Text.ToString());
            int result = num2 + num1;
            showResult.Text = form1.num1.Text.ToString() +" + " + form1.num2.Text.ToString() + " = " + result;
            //form1.Close();

        }
    }
}
